package com.dxf.bigdata.D04_spark

class T01_SubTask extends Serializable {

  var datas:List[Int] = _
  var logic:(Int) => Int = _

//  val logic2: (Int) => Int = _

  //计算
  def computer() = {
    datas.map(logic)
  }

}
